package com.jic.point.api;

import com.jic.common.base.vo.RestResult;
import com.jic.point.rest.request.ChannelConsume;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description: TODO
 * @author: lixuehui
 * @date: 2020/12/9 20:33
 * @Version 1.0
 */
@FeignClient(name = "jic-point", path = "/api/point/")
@Api(tags = " [消耗积分]")
public interface HaierConsumePointApi {
    /**
     * @Auther: lixuehui
     * @DATE: 2020/11/13
     * 单渠道消耗服务 --提供验签通过的平台方
     * 接口中需要的key和secret由积分中心授权下发。
     */
    @PostMapping("getPointConsume")
    @ApiOperation(value = " 单渠道消耗服务")
    RestResult<?> getPointConsume(@RequestBody ChannelConsume channelConsume);

    /**
     * @param channelConsume
     * @return
     * @Auther: lixuehui
     * @DATE: 2020/11/13
     * . 不分渠道消耗服务 --消耗用户的有效积分，不区分积分来源渠道
     * 接口中需要的key和secret由积分中心授权下发。
     */
    @PostMapping("consumePoint")
    @ApiOperation(value = " 不分渠道消耗服务")
    RestResult<?> getNotChannelConsume(@RequestBody ChannelConsume channelConsume);

}
